package com.chenille.tools.util

import android.content.Context
import android.graphics.Color
import com.chenille.tools.lib.zloading.ZLoadingDialog
import com.chenille.tools.lib.zloading.Z_TYPE

/**
 * @desc
 * @contact   cnhttt@163.com
 * @author  couldxtra
 * @time  2022/3/3 5:23 下午
 * @version v1.0
 * @update: [序号:1][日期YYYY-MM-DD:2022/3/3] [更改人姓名:F][变更描述:create]
 */
object MaterialDialogUtils {


    @JvmStatic
    fun showIndeterminateProgressDialog(
        context: Context,
        msg: String? = "正在加载中..."
    ): ZLoadingDialog {
        return ZLoadingDialog(context).setLoadingBuilder(Z_TYPE.DOUBLE_CIRCLE)
            .setHintTextColor(Color.GRAY)
            .setHintText(msg)
            .setDurationTime(0.5) // 设置动画时间百分比
            .setDialogBackgroundColor(Color.parseColor("#cc111111")) // 设置背景色

    }



}